home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir36 / waitfr11.zip / WAITFOR.DOC < prev    next >
Text File  |  1993-12-12  |  3KB  |  76 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.                                        WaitFor
  8.           ================================================================
  9.  
  10.                I needed a delay in batch files other than using the PAUSE
  11.           command which makes the user  make a key press. Some displays  or
  12.           program outputs  would just flash on the  screen and were gone. I
  13.           did not like having  to try and press  the Pause key at  just the
  14.           right instant. I  also wanted a delay  with and without  a screen
  15.           display and so WaitFor was developed.
  16.  
  17.                Syntax is pretty straight forward:
  18.  
  19.                WAITFOR n [nul]
  20.  
  21.                Where "n" is the number of seconds from 1 to 3600 (hour). If
  22.           you  exceed 3600 the  program defaults to 1  second. Nul means to
  23.           suppress  screen  writes.  Typing  in  WAITFOR  with  no  options
  24.           displays the help screen.
  25.  
  26.                Optional syntax: WAITFOR nul
  27.  
  28.                This  does  a default  one second  delay without  any screen
  29.           displays. So "WAITFOR  1 nul" and "WAITFOR nul"  get you the same
  30.           results.
  31.  
  32.                Sample batch file:
  33.  
  34.                Echo off            < turn echo off
  35.                cls                 < clear screen
  36.                chkdsk c: /f        < run check disk on C:  
  37.                waitfor 2 nul       < delay to read screen   
  38.                cls                 < clear screen 
  39.                chkdsk d:/f         < run check disk on D:
  40.                waitfor 2 nul       < delay to read screen
  41.                defrag c: /f        < defragment C:
  42.                defrag d: /f /b     < defragment D: and boot system
  43.  
  44.                The  above example would do a Checkdisk (Chkdsk) on drive C:
  45.           and D:  with a two second  delay after each one.  The delay gives
  46.           you just enough time to see what is on the screen before going on
  47.           to  the  next  command.  (I  use a  similar  batch  file  that is
  48.           performed once per day  using the program 1ADAY calling  my daily
  49.           once batch file.)  It would then perform  a Defrag (DOS 6.0+)  on
  50.           the  same two drives and reboot when finished. Norton users would
  51.           or  could  use Speedisk  in place  of  DOS' Defrag  (acually same
  52.           program).
  53.  
  54.                If  you have any questions  or problems please  feel free to
  55.           contact  me.  This program  is being  released as  Freeware which
  56.           means I  am not  asking for monetary  compensation (registration,
  57.           donation, etc.).
  58.  
  59.                The archive should contain only the following files:
  60.  
  61.  
  62.  
  63.  
  64.  
  65.                WAITFOR.EXE............Actual program
  66.                WAITFOR.DOC............WaitFor documentation
  67.                READ.ME................Update information
  68.                FILE_ID.DIZ............BBS description file
  69.                HUCKABEY.TXT...........Current list of James Huckabey
  70.                                       software
  71.                ARCHIVE.TXT............This list of files
  72.  
  73.                          James Huckabey
  74.                          3621-A Fraser Street
  75.                          Bellingham, WA 98226-2473 U.S.A.
  76.                          (206) 671-2868 (voice, Pacific)